<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>订单</title>
	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/yichuli_scss.css">
	<script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
	<script src="<?php echo IMG_PATH ?>bdkd/js/flexible.js"></script>

	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/reset.css">
	<script src="<?php echo IMG_PATH ?>bdkd/js/jquery-1.11.1.min.js"></script>
    <style>

    </style>
</head>
<body>
<!--<p><a style=" display:inline-block;width: 4rem; height: 2rem; border: 1px solid #006600;" href="javascript:window.location.reload()">刷新</a></p>
-->	<nav id="nav">
        <a href="<?php echo SITE_PATH ?>work/borders/untreated">
            <div class="nav_left nav_bar">
                待处理订单
            </div>
        </a>
        <a href="<?php echo SITE_PATH?>work/borders/order">
            <div class="nav_right nav_bar">
                已处理订单
            </div>
        </a>

	 </nav>

    <?php
    if(empty($list)){
        ?>
        <div class="ycl-bug">
           <div class="ycl-bug1">
               <img src="<?php echo IMG_PATH ?>bdkd/img/owu.png" alt="">
               <p>亲爱的小主，开始您的第一单邮寄吧</p>
           </div>
        </div>
        <?php
    }else{
        foreach ($list as $value){
            ?>
            <input type="hidden" id="id" value="<?php echo $value->id;?>">
            <div class="sfsy">
                <div class="shunfengsuyun">
                    <span><?php echo $value->express_name;?></span>
                    <span>编号 : <a><?php echo $value->order_id;?></a></span>
                </div>
            </div>
            <div class="ji">
                <div class="ji-neikuang">
                    <div class="tupian-ji">
                        <?php
                        if($value->type==0){
                            ?>
                            <img src="<?php echo IMG_PATH ?>bdkd/img/取@2x.png" alt="">
                            <?php
                        }
                        if($value->type==1){
                            ?>
                            <img src="<?php echo IMG_PATH ?>bdkd/img/寄@2x.png" alt="">
                            <?php
                        }
                        if($value->type==2){
                            ?>
                            <img src="<?php echo IMG_PATH ?>bdkd/img/托@2x.png" alt="">
                            <?php
                        }
                        ?>
                    </div>
                    <div class="xinxi">
                        <p>单号 : <a><?php echo $value->ex_order;?></a></p>
                        <p>
                            <?php
                            if($value->type==0){
                                ?>
                                标准 : <a>
                                    <?php echo $value->standard;?>
                                </a>
                                <?php
                            }else{
                                ?>
                                重量 : <a>
                                    <?php echo $value->weight;?>
                                </a>kg
                                <?php
                            }
                            ?>
                            <span>金额 : <a><?php echo $value->price;?></a>元</span></p>
                    </div>
                </div>
            </div>
            <div class="fwpj">
                <div onclick="server()" class="fuwupinjia">
                    <span>服务评价 >></span>
                    <span><?php echo date("Y-m-d H:i:s",$value->time_add)?></span>
                </div>
            </div>
            <?php
        }
    }

    ?>

	 <div class="flooter">
		<ul>
			
			<li>
				<a href="<?php echo SITE_PATH?>work/bpost/success">
					<img src="<?php echo IMG_PATH ?>bdkd/img/shouye-z@2x.png"/>
					<p>首页</p>
				</a>
			</li>
			
			
			<li>
				<a href="<?php echo SITE_PATH?>work/borders/untreated">
					<img src="<?php echo IMG_PATH ?>bdkd/img/js-two@2x.png" />
					<p class="color">订单</p>
				</a>
			</li>
			
			
			<li>
				<a href="<?php echo SITE_PATH?>work/buser/userInfo">
					<img src="<?php echo IMG_PATH ?>bdkd/img/rt-one@2x.png" />
					<p>我的</p>
				</a>	
			</li>
			
		</ul>
	</div>
	<script src="<?php echo IMG_PATH ?>bdkd/js/yichuli.js"></script>
<script>
    function server() {
        var id=$("#id").val();
       // alert(id);//return false;
        window.location.href="<?php echo SITE_PATH?>work/borders/evaluate?id="+id;
    }
</script>
</body>
</html>